#ifndef _RENDER
#define _RENDER

// INCLUDES --------------------------------------------------------------------------
#include "base.h"

// DEFINES ---------------------------------------------------------------------------
#define OPENGL // pick OpenGL as the renderer
#define GLUT   // pick GLUT as the window manager

// rasterization platform
#ifdef OPENGL
  // OpenGL
  #include <OpenGL/gl.h>
  #include <OpenGL/glu.h>
  #include <OpenGL/glext.h>
#endif // OPENGL

// windowmanager
#ifdef GLUT
  // GLUT
  #include <GLUT/glut.h>
#endif // GLUT

void RenderInit();                            // setup rasterization platform
void RenderViewport(ui32 width, ui32 height); // setup viewport
void RenderClear();                           // clear screen
void RenderInvalidate();                      // mark screen as "needs to be redrawn"
void RenderSwapBuffers();                     // swap back-/frontbuffer

#endif // _RENDER
